Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving iri and rank to m_def #59

Closed
wants to merge 2 commits into from
Closed

Moving iri and rank to m_def #59

wants to merge 2 commits into from

Conversation

JosePizarro3
Copy link
Collaborator

I was wrongly mixing concepts for quantities and definitions. After talking with Area D, I decided to move iri and rank to m_def at the beginning of each property. This means that the nomad/metainfo/metainfo.py had to be modified to include these as part of the class Section(Definition) attributes.

@JosePizarro3 JosePizarro3 added bug Something isn't working improvement/fix Improvement or fix of a previous feature labels Apr 29, 2024
@JosePizarro3 JosePizarro3 self-assigned this Apr 29, 2024
@JosePizarro3 JosePizarro3 marked this pull request as draft April 30, 2024 07:07
@JosePizarro3
Copy link
Collaborator Author

I need to check the situations in which self.m_def.rank is defined finite: can I do:

m_def = Section(iri='...', rank['n_orbitals'])
n_orbitals = Quantity(type=np.int32)

??

@JosePizarro3
Copy link
Collaborator Author

Closing this in favor of whatever Area D implements in nomad-lab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working improvement/fix Improvement or fix of a previous feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant